from tabnanny import verbose
from django.db import models

# Create your models here.

class Record(models.Model):
    when=models.DateTimeField(verbose_name='时间',auto_now_add=True,null=False)
    where=models.TextField(verbose_name='请求方主机',max_length=20,null=False)
    how=models.TextField(verbose_name='url',max_length=30,null=False)
    who=models.EmailField(verbose_name='用户邮箱')
    method=models.TextField(verbose_name='请求类型',max_length=10,null=False)
    json=models.TextField(verbose_name='json文本',max_length=300)
    class Meta:
        verbose_name='操作记录'
        verbose_name_plural='操作记录'